function refreshTvIos() {
    window.refreshTv();
    return 'I调用'
}

function windUpdateWidget(symbolInfo) {
    if (window.updateWidget) {
        window.updateWidget(symbolInfo);
    } else {
        setTimeout(() => {
            windUpdateWidget(symbolInfo)
        }, 0);
    }
    return 'I调用'
}

function getQueryString(name) {
    var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
    var r = window.location.search.substr(1).match(reg);
    if (r != null) return decodeURI(r[2]);
    return null;
}
let body = document.body;
let theme = getQueryString('pattern')
body.style.background = theme == 2 ? "#212530" : '#fff'
window.onload = function () {
    let app = document.getElementById('app')
    app.style.background = theme == 2 ? "#212530" : '#fff'
    body.style.display = 'block'
    // windUpdateWidget({
    //     pair_ca: "0x7fe382B1C10Fc4bcB5b018701eb6CcC09eDBF83c",
    //     chain_id: "8453",
    //   })
}